package com.zuipin.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import net.sf.json.JSONObject;

/**
 * 订单详情
 **/
@SuppressWarnings("serial")
public class OrderDetail implements Serializable {
	
	private Long				id;							// 主键
	
	private Long				createId;					// 创建者（后台用户订单为空）
	
	private String				createTime;					// 创建时间（后台用户订单为空）
	
	private Long				updateId;					// 更新者
	
	private String				updateTime;					// 更新时间
	
	private Short				delFlag;					// 是否删除
	
	private Long				orderId;					// 订单ID
	
	private String				proSku;						// 商品编号
	
	private BigDecimal			productNum;					// 商品数量
	
	private String				productName;				// 商品名称
	
	private BigDecimal			productPrice;				// 商品原价
	
	private Integer				jfPrice;					// 积分原价
	private BigDecimal			jfPurchasePrice;			// 积分实付单价
	
	private String				productProperty;			// 商品属性
	
	private BigDecimal			purchasePrice;				// 购买价
	
	private String				packNo;						// 泡袋ID
	
	private Integer				useJfSum;					// 使用的积分 （实际使用的积分）
	
	private BigDecimal			jfSubtotal;					// 积分小计(积分原价*数量)
	
	private Integer				giveJfSum;					// 赠送的积分
	
	private BigDecimal			useRedPacketSum;			// 使用的红包
	
	private BigDecimal			useCashBackSum;				// 使用的返现
	
	private BigDecimal			giveCashBackSum;			// 赠送的返现
	
	private BigDecimal			backProductNumber;			// 成功退货数量
	
	private BigDecimal			packWeight;					// 泡袋净重
	
	private String				premiumEnum;				// 赠品
	
	private Long				supplierId;					// 供应商ID
	
	private BigDecimal			subtotal;					// 小计(原价*数量)
	
	private String				businessType;				// 联营/自营
	
	private String				imageUrl;					// VO
	
	private String				productType;				// vo商品类别
	
	private String				brand;						// vo品牌
	
	private String				type;						// vo
	private BigDecimal			internalDiscountSum;		// 内部优惠价
	
	private Short				isComment;					// 是否评价
	
	private BigDecimal			useRuleSum;					// 每款商品所均摊的购物车优惠金额
	
	private BigDecimal			actualPaySubtotal;			// 实际支付小计
	
	private Long				ruleId;						// 赠送规则ID
	
	private String				ruleShowName;				// 赠送规则名字
	
	private Short				isJfProduct;				// 是否是积分商品 1是 0不是
	// vovovovovovovo
	private Long				sysId;						// 系统Id
	
	public static final Short	IS_JF_PRODUCT_YES	= 1;	// 积分商品
	public static final Short	IS_JF_PRODUCT_NO	= 0;	// 不是积分商品
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public Long getId() {
		return this.id;
	}
	
	public void setCreateId(Long createId) {
		this.createId = createId;
	}
	
	public Long getCreateId() {
		return this.createId;
	}
	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
	public String getCreateTime() {
		return this.createTime;
	}
	
	public void setUpdateId(Long updateId) {
		this.updateId = updateId;
	}
	
	public Long getUpdateId() {
		return this.updateId;
	}
	
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	
	public String getUpdateTime() {
		return this.updateTime;
	}
	
	public void setDelFlag(Short delFlag) {
		this.delFlag = delFlag;
	}
	
	public Short getDelFlag() {
		return this.delFlag;
	}
	
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}
	
	public Long getOrderId() {
		return this.orderId;
	}
	
	public String getProSku() {
		return proSku;
	}
	
	public void setProSku(String proSku) {
		this.proSku = proSku;
	}
	
	public void setProductNum(BigDecimal productNum) {
		this.productNum = productNum;
	}
	
	public BigDecimal getProductNum() {
		return this.productNum;
	}
	
	public void setProductName(String productName) {
		this.productName = productName;
	}
	
	public String getProductName() {
		return this.productName;
	}
	
	public void setProductPrice(BigDecimal productPrice) {
		this.productPrice = productPrice;
	}
	
	public BigDecimal getProductPrice() {
		return this.productPrice;
	}
	
	public void setJfPrice(Integer jfPrice) {
		this.jfPrice = jfPrice;
	}
	
	public Integer getJfPrice() {
		return this.jfPrice;
	}
	
	public void setProductProperty(String productProperty) {
		this.productProperty = productProperty;
	}
	
	public String getProductProperty() {
		return this.productProperty;
	}
	
	public void setPurchasePrice(BigDecimal purchasePrice) {
		this.purchasePrice = purchasePrice;
	}
	
	public BigDecimal getPurchasePrice() {
		return this.purchasePrice;
	}
	
	public void setPackNo(String packNo) {
		this.packNo = packNo;
	}
	
	public String getPackNo() {
		return this.packNo;
	}
	
	public void setUseJfSum(Integer useJfSum) {
		this.useJfSum = useJfSum;
	}
	
	public Integer getUseJfSum() {
		return this.useJfSum;
	}
	
	public void setGiveJfSum(Integer giveJfSum) {
		this.giveJfSum = giveJfSum;
	}
	
	public Integer getGiveJfSum() {
		return this.giveJfSum;
	}
	
	public void setUseRedPacketSum(BigDecimal useRedPacketSum) {
		this.useRedPacketSum = useRedPacketSum;
	}
	
	public BigDecimal getUseRedPacketSum() {
		return this.useRedPacketSum;
	}
	
	public void setUseCashBackSum(BigDecimal useCashBackSum) {
		this.useCashBackSum = useCashBackSum;
	}
	
	public BigDecimal getUseCashBackSum() {
		return this.useCashBackSum;
	}
	
	public void setGiveCashBackSum(BigDecimal giveCashBackSum) {
		this.giveCashBackSum = giveCashBackSum;
	}
	
	public BigDecimal getGiveCashBackSum() {
		return this.giveCashBackSum;
	}
	
	public void setBackProductNumber(BigDecimal backProductNumber) {
		this.backProductNumber = backProductNumber;
	}
	
	public BigDecimal getBackProductNumber() {
		return this.backProductNumber;
	}
	
	public void setPackWeight(BigDecimal packWeight) {
		this.packWeight = packWeight;
	}
	
	public BigDecimal getPackWeight() {
		return this.packWeight;
	}
	
	public String getPremiumEnum() {
		return premiumEnum;
	}
	
	public void setPremiumEnum(String premiumEnum) {
		this.premiumEnum = premiumEnum;
	}
	
	public void setSupplierId(Long supplierId) {
		this.supplierId = supplierId;
	}
	
	public Long getSupplierId() {
		return this.supplierId;
	}
	
	public void setSubtotal(BigDecimal subtotal) {
		this.subtotal = subtotal;
	}
	
	public BigDecimal getSubtotal() {
		return this.subtotal;
	}
	
	public String getBusinessType() {
		return businessType;
	}
	
	public void setBusinessType(String businessType) {
		this.businessType = businessType;
	}
	
	public String getImageUrl() {
		return imageUrl;
	}
	
	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}
	
	/**
	 * @return the productType
	 */
	public String getProductType() {
		return productType;
	}
	
	/**
	 * @param productType the productType to set
	 */
	public void setProductType(String productType) {
		this.productType = productType;
	}
	
	/**
	 * @return the brand
	 */
	public String getBrand() {
		return brand;
	}
	
	/**
	 * @param brand the brand to set
	 */
	public void setBrand(String brand) {
		this.brand = brand;
	}
	
	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}
	
	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}
	
	public BigDecimal getInternalDiscountSum() {
		return internalDiscountSum;
	}
	
	public void setInternalDiscountSum(BigDecimal internalDiscountSum) {
		this.internalDiscountSum = internalDiscountSum;
	}
	
	public static void main(String[] args) {
		OrderDetail de = new OrderDetail();
		System.out.println(JSONObject.fromObject(de).toString());
	}
	
	public Short getIsComment() {
		return isComment;
	}
	
	public void setIsComment(Short isComment) {
		this.isComment = isComment;
	}
	
	public Long getSysId() {
		return sysId;
	}
	
	public void setSysId(Long sysId) {
		this.sysId = sysId;
	}
	
	public BigDecimal getUseRuleSum() {
		return useRuleSum;
	}
	
	public void setUseRuleSum(BigDecimal useRuleSum) {
		this.useRuleSum = useRuleSum;
	}
	
	public BigDecimal getActualPaySubtotal() {
		return actualPaySubtotal;
	}
	
	public void setActualPaySubtotal(BigDecimal actualPaySubtotal) {
		this.actualPaySubtotal = actualPaySubtotal;
	}
	
	public Long getRuleId() {
		return ruleId;
	}
	
	public void setRuleId(Long ruleId) {
		this.ruleId = ruleId;
	}
	
	public String getRuleShowName() {
		return ruleShowName;
	}
	
	public void setRuleShowName(String ruleShowName) {
		this.ruleShowName = ruleShowName;
	}
	
	public BigDecimal getJfPurchasePrice() {
		return jfPurchasePrice;
	}
	
	public void setJfPurchasePrice(BigDecimal jfPurchasePrice) {
		this.jfPurchasePrice = jfPurchasePrice;
	}
	
	public BigDecimal getJfSubtotal() {
		return jfSubtotal;
	}
	
	public void setJfSubtotal(BigDecimal jfSubtotal) {
		this.jfSubtotal = jfSubtotal;
	}
	
	public Short getIsJfProduct() {
		return isJfProduct;
	}
	
	public void setIsJfProduct(Short isJfProduct) {
		this.isJfProduct = isJfProduct;
	}
	
	// 测试
	@Override
	public String toString() {
		return "OrderDetail [id=" + id + ", createId=" + createId + ", createTime=" + createTime + ", updateId=" + updateId + ", updateTime=" + updateTime + ", delFlag=" + delFlag
				+ ", orderId=" + orderId + ", proSku=" + proSku + ", productNum=" + productNum + ", productName=" + productName + ", productPrice=" + productPrice + ", jfPrice="
				+ jfPrice + ", productProperty=" + productProperty + ", purchasePrice=" + purchasePrice + ", packNo=" + packNo + ", useJfSum=" + useJfSum + ", giveJfSum="
				+ giveJfSum + ", useRedPacketSum=" + useRedPacketSum + ", useCashBackSum=" + useCashBackSum + ", giveCashBackSum=" + giveCashBackSum + ", backProductNumber="
				+ backProductNumber + ", packWeight=" + packWeight + ", premiumEnum=" + premiumEnum + ", supplierId=" + supplierId + ", subtotal=" + subtotal + ", businessType="
				+ businessType + ", imageUrl=" + imageUrl + ", productType=" + productType + ", brand=" + brand + ", type=" + type + ", internalDiscountSum=" + internalDiscountSum
				+ ", isComment=" + isComment + ", useRuleSum=" + useRuleSum + ", actualPaySubtotal=" + actualPaySubtotal + ", ruleId=" + ruleId + ", ruleShowName=" + ruleShowName
				+ ", sysId=" + sysId + "]";
	}
	
}
